package com.ruoyi.conversation.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 【会话】对象 conversation
 *
 * @author ruoyi
 * @date 2025-07-03
 */
@Data
@ApiModel(description = "会话实体")
public class Conversation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "会话id", example = "会话id")
    private Long id;

    @ApiModelProperty(value = "发送人", example = "发送人")
    @Excel(name = "发送人")
    private String fromUser;

    @ApiModelProperty(value = "接收人", example = "接收人")
    @Excel(name = "接收人")
    private String toUser;

    @ApiModelProperty(value = "内容", example = "内容")
    @Excel(name = "内容")
    private String content;

    @ApiModelProperty(value = "类型 0-文字, 1-图片", example = "0")
    @Excel(name = "类型 0-文字, 1-图片")
    private Integer type;

    @ApiModelProperty(value = "状态 0-正常, 1-删除", example = "0")
    @Excel(name = "状态 0-正常, 1-删除")
    private Integer state;

    @ApiModelProperty(value = "用户id", example = "用户id")
    @Excel(name = "用户id")
    private String userId;

    @ApiModelProperty(value = "订单id", example = "订单id")
    @Excel(name = "订单id")
    private String orderId;

    @ApiModelProperty(value = "会话id", example = "会话id")
    @Excel(name = "会话id")
    private String sessionId;

    @ApiModelProperty(value = "是否关闭", example = "是否关闭")
    private String closed;

    @ApiModelProperty(value = "消息类型：message-聊天, closeRequest-请求结束, closeConfirm-用户同意, closeNotice-系统通知", example = "message")
    private String actionType;

    @ApiModelProperty(value = "发起人角色：user-用户, expert-专家", example = "user")
    private String fromRole;

    @ApiModelProperty(value = "是否是离线信息, 0-离线,1-非离线")
    private Integer isOffline;


}
